package com.tencreat.domain.pt.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("app端品拼团商品详情")
public class ResPtGoodsDetailAppVO {
    @ApiModelProperty("拼团id")
    private Long id;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("商品价格")
    private BigDecimal goodsPrice;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("开奖时间")
    private Date drawTime;

    @ApiModelProperty("参与人数")
    private Integer joinCount;

    @ApiModelProperty("期数")
    private Integer numberOfPeriods;

    @ApiModelProperty("可兑换积分")
    private Integer convertible;

    @ApiModelProperty("中奖人数")
    private Integer lotteryNumber;

    @ApiModelProperty(value = "商品宣传图")
    public List<String> gallery;

    @ApiModelProperty(value = "详情")
    public List<String> detail;

    @ApiModelProperty(value = "邮费")
    private String postage;

    @ApiModelProperty(value = "是否收藏")
    private Boolean isCollect;

    public String image;
    public String image2;

    @ApiModelProperty(value = "是否参与")
    private  Boolean joinFlag;
}
